home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13472 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  772 b 

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Compare function
  5. Date: 7 Apr 1996 08:41:25 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4k7v3l$stl@sparcserver.lrz-muenchen.de>
  9. References: <4k52cf$6ok@freenet-news.carleton.ca>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. aq436@FreeNet.Carleton.CA (Jerry Boyd) writes:
  13.  
  14. >How would I write a compare function (compare_strings, for 
  15. >instance) that uses character pointers.  I need something 
  16. >that would take a string and compare it to a list, or dictionary, 
  17. >of other words.  
  18.  
  19. strcmp() comes to mind.
  20.  
  21. Kurt
  22. --
  23. | Kurt Watzka                             Phone : +49-89-2180-6254
  24. | watzka@stat.uni-muenchen.de
  25.